<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/static/member/themes/YouErJiaoYu/header.jsp" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport"
	content="width=device-width initial-scale=1.0  maximum-scale=1.0">
<link href="${ctxStatic}/jquery-mobile/css/jquery.mobile-1.3.1.min.css" type="text/css" rel="stylesheet" />
<title>今天作业</title>
<script type="text/javascript">

$(document).ready(function() {
	$("#errorMessage").hide()
});

</script>
</head>
<body>

		

		<ul class="nav nav-tabs">
		  <li class="active"><a href="${ctx}/edu/usercentraList/viewHomeWorkByToday?uid=${uid}&wechatId=${wechatId}&style=${style}">今日作业</a></li>
		  <li><a href="${ctx}/edu/usercentraList/viewHomeWork?uid=${uid}&wechatId=${wechatId}&style=${style}">查看作业</a></li>
		</ul>
		<div class="row-fluid">
                           <div class="span12">
                               <div class="panel-group" id="accordion">
                               	<c:forEach items="${ homeworks}" var="homework" varStatus="varStatus">
                                   <div class="panel panel-default" >
                                       <div class="panel-heading " data-toggle="collapse" data-parent="#accordion" href="#collapse${varStatus.count }">
                                           <a class="accordion-toggle" >
                                           	${homework.course.name }    <span style="float:right;" class="glyphicon glyphicon-chevron-left"></span><span style="float:right;"><fmt:formatDate value="${homework.date}" type="date"/></span>
                                           </a>
                                       </div>
                                       <div id="collapse${varStatus.count }" class="panel-collapse collapse">
                                           <div class="panel-body">
                                           <p class="text-center" style="font-size:22"> ${homework.name}</p>
                                           ${homework.content }
                                       </div>
                                   </div>
                                   </div>
                                   </c:forEach>
                               </div>
                           </div>
                       </div>
</body>


<jsp:include page="./footer.jsp"></jsp:include>
</html>